package com.yy.satokenapplication.model;

import com.yy.satokenapplication.entity.SysPermission;
import com.yy.satokenapplication.entity.SysRole;
import lombok.Data;

import java.util.List;

/**
 * @author young
 * Date 2025/3/15 下午10:37
 * Description: 用户权限角色信息缓存对象
 */
@Data
public class UserInfoCache {
    private final Long userId;
    private final List<SysPermission> permissions;
    private final List<SysRole> roles;

    public UserInfoCache(Long userId, List<SysPermission> permissions, List<SysRole> roles) {
        this.userId = userId;
        this.permissions = permissions;
        this.roles = roles;
    }
    
}
